package com.wlient.basic.Thread.newThread;

import java.util.Timer;

public class ThreadDemo extends Thread{

    private static int num = 0;

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
                num++;
                System.out.println(num);
        }
    }

    public static void main(String[] args) {
        new ThreadDemo().run();
        new ThreadDemo().start();
    }
}